package Day36.collections;

import java.util.ArrayList;
import java.util.Collections;
import java.util.LinkedList;
import java.util.List;

public class Test2 {
    public static void main(String[] args) {
        List<String> list = new ArrayList<>();
        Collections.addAll(list,"aaa","bbb","ccc","ddd");
        List<String> strs = new ArrayList<>();
        strs.add("xxx");
        strs.add("yyy");
        strs.add("zzz");
        strs.add("uuu");

        System.out.println(strs.size());
        Collections.copy(strs,list);
       /* for (String str : list
             ) {
            strs.add(str);
        }*/
        System.out.println(strs);

    }
}
